package ad.android.dao.base;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.orm.hibernate3.HibernateTemplate;

public class BaseDao extends HibernateTemplate{
	protected final Log log = LogFactory.getLog(getClass());

	protected void logDebug(String info) {
		if (log.isDebugEnabled()) {
			log.debug(info);
		}
	}

	protected void logDebug(String str, Exception e) {
		if (log.isDebugEnabled()) {
			log.debug(str, e);
		}
	}
}
